<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js">
    </script>
</head>

<body>
    <script>
        var app = angular.module("myApp", []);
        app.controller("mydomCtrl", function ($scope) {
            $scope.myswitch = true;
        });  
    </script>

    <!-- <div ng-app="myApp" ng-controller="mydomCtrl">
        <button ng-disabled="myswitch">按钮</button>
        <input type="checkbox" ng-model="myswitch">禁用按钮</input>
        {{myswitch}}
    </div> -->

    <!-- <div ng-app="myApp" ng-controller="mydomCtrl">
        <button ng-show="myswitch">按钮</button>
        <input type="checkbox" ng-model="myswitch">显示按钮</input>
        {{myswitch}}
    </div> -->

    <div ng-app="myApp" ng-controller="mydomCtrl">
            <button ng-hide="myswitch">按钮</button>
            <input type="checkbox" ng-model="myswitch">隐藏按钮</input>
            {{myswitch}}
        </div>
</body>

</html>